package demo.springboot;

import demo.springboot.mapper.DepartmentMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author yexi
 * @see com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Application.class, args);
        System.out.println(run.getBean(DepartmentMapper.class).selectList(null));
    }

}
